package com.ruoyi.wx.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 orders
 *
 * @author hxie
 * @date 2021-01-07
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private String ordersId;

    /** 用户表的用户ID */
    @Excel(name = "用户表的用户ID")
    private Long userId;

    /** 买家名字 */
    @Excel(name = "买家名字")
    private String buyerName;

    /** 买家电话 */
    @Excel(name = "买家电话")
    private String phone;

    /** 买家地址 */
    @Excel(name = "买家地址")
    private String address;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String weixinOpenid;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal ordersAmount;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer ordersStatus;

    /** 微信付款编号 */
    @Excel(name = "微信付款编号")
    private Long payId;

    public void setOrdersId(String ordersId)
    {
        this.ordersId = ordersId;
    }

    public String getOrdersId()
    {
        return ordersId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBuyerName(String buyerName)
    {
        this.buyerName = buyerName;
    }

    public String getBuyerName()
    {
        return buyerName;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setWeixinOpenid(String weixinOpenid)
    {
        this.weixinOpenid = weixinOpenid;
    }

    public String getWeixinOpenid()
    {
        return weixinOpenid;
    }
    public void setOrdersAmount(BigDecimal ordersAmount)
    {
        this.ordersAmount = ordersAmount;
    }

    public BigDecimal getOrdersAmount()
    {
        return ordersAmount;
    }
    public void setOrdersStatus(Integer ordersStatus)
    {
        this.ordersStatus = ordersStatus;
    }

    public Integer getOrdersStatus()
    {
        return ordersStatus;
    }
    public void setPayId(Long payId)
    {
        this.payId = payId;
    }

    public Long getPayId()
    {
        return payId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("ordersId", getOrdersId())
                .append("userId", getUserId())
                .append("buyerName", getBuyerName())
                .append("phone", getPhone())
                .append("address", getAddress())
                .append("weixinOpenid", getWeixinOpenid())
                .append("ordersAmount", getOrdersAmount())
                .append("ordersStatus", getOrdersStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("payId", getPayId())
                .toString();
    }
}
